#!/bin/bash

# Remove previous files
rm advf_d.f*;

# Generate tagent code with tapenade
tapenade -head advf -d -outvars "x" -vars "x0" -diffvarname d -difffuncname "_d" -inputlanguage fortan95 -outputlanguage fortran95 -o advf advf.F ;

# Cat the message file just incase
cat advf_d.msg;

# Now delete the message file as it's annoying
rm advf_d.msg*;

